package com.example.product.service;

import com.example.api.dto.SysUserDto;
import com.example.api.entity.SysUser;
import com.example.api.util.Result;

public interface SysUserService {
    SysUser getUserByUserName(String userName);

    /**
     * @Title:
     * @Description 分页
     * @param
     * @author zhangning
     * @Date 2019/9/4 14:10
     */
    Result pageUser(SysUserDto sysUser);

    /**
     * @Title:
     * @Description 开启
     * @param
     * @author zhangning
     * @Date 2019/9/4 16:55
     */
    Result userLockedOpenById(SysUserDto sysUserDto);

    /**
     * @Title:
     * @Description 关闭（逻辑删除）
     * @param
     * @author zhangning
     * @Date 2019/9/4 16:55
     */
    Result userLockedCloseById(SysUserDto sysUserDto);

    /**
     * @Title:
     * @Description 添加用户
     * @param
     * @author zhangning
     * @Date 2019/9/5 9:27
     */
    Result insertUser(SysUserDto sysUserDto);


}
